import request from '@/utils/request.js'

// 学生信息列表查询
export const studentshowListService = () => {
  return request.get('/student/selectAll');
}

// 学生信息添加
export const studentAddService = (studentdata) => {
  return request.post('/student/addStudent', studentdata);
}

//学生信息修改
export const studentUpdateService = (studentdata) => {
  return request.put('/student/update', studentdata);
}

//学生信息删除
export const studentDeleteService = (studentId) =>{
  return request.delete('/student/deleteStudent/' + studentId);
}

//学生信息单个查询
export const studentshowbyidListService = (studentId) =>{
  return request.get('student/select/' + studentId)
}

//学生信息按名称查询
export const studentshowbynameListService = (studentName) =>{
  return request.get('student/selectByName?keyword=' + studentName)
}
